package com.dldata.devtools30.entity;

import jakarta.persistence.*;

import java.util.Objects;

@Entity
@Table(name = "devt_form_metadata")
public class DevtFormMetadataEntity {
    private String id;
    private String tableid;
    private String templeid;
    private String tabletype;
    @Basic
    @Column(name = "tabletype", nullable = true, insertable = true, updatable = true,length = 100)
    public String getTabletype() {
        return tabletype;
    }

    public void setTabletype(String tabletype) {
        this.tabletype = tabletype;
    }
    @Id
    @Column(name = "id", nullable = false, insertable = true, updatable = true, length = 64)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    @Basic
    @Column(name = "tableid", nullable = true, insertable = true, updatable = true, length = 64)
    public String getTableid() {
        return tableid;
    }

    public void setTableid(String tableid) {
        this.tableid = tableid;
    }
    @Basic
    @Column(name = "templeid", nullable = true, insertable = true, updatable = true, length = 64)
    public String getTempleid() {
        return templeid;
    }

    public void setTempleid(String templeid) {
        this.templeid = templeid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DevtFormMetadataEntity that = (DevtFormMetadataEntity) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(tableid, that.tableid) &&
                Objects.equals(templeid, that.templeid);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, tableid, templeid);
    }
}
